<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 6.0.0">
  <link rel="apple-touch-icon" sizes="180x180" href="/blando/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/blando/images/favicon-32x32-next.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/blando/images/favicon-16x16-next.png">
  <link rel="mask-icon" href="/blando/images/logo.svg" color="#222">

<link rel="stylesheet" href="/blando/css/main.css">


<link rel="stylesheet" href="/blando/lib/font-awesome/css/all.min.css">

<script id="hexo-configurations">
    var NexT = window.NexT || {};
    var CONFIG = {"hostname":"blandodo.gitee.io","root":"/blando/","scheme":"Muse","version":"7.8.0","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":false,"show_result":false,"style":null},"back2top":{"enable":true,"sidebar":false,"scrollpercent":false},"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":false,"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":false,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}}};
  </script>

  <meta name="description" content="根据官方安装手册指导：https:&#x2F;&#x2F;hexo.io&#x2F;zh-cn&#x2F;docs&#x2F; gitee上设置：1、需要上传身份证照片做实名认证2、安装win版git后，Powershell下，使用Cygwin的~&#x2F;.ssh&#x2F;目录下可以key，满足git的授权使用 问题：执行hexo deploy后，访问Pages仍然404Gitee部署网页后，需要到页面进行更新。https:&#x2F;&#x2F;gitee.">
<meta property="og:type" content="article">
<meta property="og:title" content="HEXO部署静态网页">
<meta property="og:url" content="https://blandodo.gitee.io/blando/2022/03/08/HEXO%E9%83%A8%E7%BD%B2%E9%9D%99%E6%80%81%E7%BD%91%E9%A1%B5/index.html">
<meta property="og:site_name" content="Blando">
<meta property="og:description" content="根据官方安装手册指导：https:&#x2F;&#x2F;hexo.io&#x2F;zh-cn&#x2F;docs&#x2F; gitee上设置：1、需要上传身份证照片做实名认证2、安装win版git后，Powershell下，使用Cygwin的~&#x2F;.ssh&#x2F;目录下可以key，满足git的授权使用 问题：执行hexo deploy后，访问Pages仍然404Gitee部署网页后，需要到页面进行更新。https:&#x2F;&#x2F;gitee.">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2022-03-08T07:52:34.000Z">
<meta property="article:modified_time" content="2022-03-08T08:02:38.083Z">
<meta property="article:author" content="John Doe">
<meta property="article:tag" content="嵌入式,软件,硬件">
<meta name="twitter:card" content="summary">

<link rel="canonical" href="https://blandodo.gitee.io/blando/2022/03/08/HEXO%E9%83%A8%E7%BD%B2%E9%9D%99%E6%80%81%E7%BD%91%E9%A1%B5/">


<script id="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome : false,
    isPost : true,
    lang   : 'zh-CN'
  };
</script>

  <title>HEXO部署静态网页 | Blando</title>
  






  <noscript>
  <style>
  .use-motion .brand,
  .use-motion .menu-item,
  .sidebar-inner,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line-before i { left: initial; }
  .use-motion .logo-line-after i { right: initial; }
  </style>
</noscript>

</head>

<body itemscope itemtype="http://schema.org/WebPage">
  <div class="container use-motion">
    <div class="headband"></div>

    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏">
      <span class="toggle-line toggle-line-first"></span>
      <span class="toggle-line toggle-line-middle"></span>
      <span class="toggle-line toggle-line-last"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/blando/" class="brand" rel="start">
      <span class="logo-line-before"><i></i></span>
      <h1 class="site-title">Blando</h1>
      <span class="logo-line-after"><i></i></span>
    </a>
      <p class="site-subtitle" itemprop="description">技术日志</p>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
    </div>
  </div>
</div>




<nav class="site-nav">
  <ul id="menu" class="main-menu menu">
        <li class="menu-item menu-item-home">

    <a href="/blando/" rel="section"><i class="fa fa-home fa-fw"></i>首页</a>

  </li>
        <li class="menu-item menu-item-archives">

    <a href="/blando/archives/" rel="section"><i class="fa fa-archive fa-fw"></i>归档</a>

  </li>
  </ul>
</nav>




</div>
    </header>

    
  <div class="back-to-top">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>


    <main class="main">
      <div class="main-inner">
        <div class="content-wrap">
          

          <div class="content post posts-expand">
            

    
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="https://blandodo.gitee.io/blando/2022/03/08/HEXO%E9%83%A8%E7%BD%B2%E9%9D%99%E6%80%81%E7%BD%91%E9%A1%B5/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/blando/images/avatar.gif">
      <meta itemprop="name" content="John Doe">
      <meta itemprop="description" content="">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Blando">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          HEXO部署静态网页
        </h1>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-calendar"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>
              

              <time title="创建时间：2022-03-08 15:52:34 / 修改时间：16:02:38" itemprop="dateCreated datePublished" datetime="2022-03-08T15:52:34+08:00">2022-03-08</time>
            </span>

          

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
        <p>根据官方安装手册指导：<br><a target="_blank" rel="noopener" href="https://hexo.io/zh-cn/docs/">https://hexo.io/zh-cn/docs/</a></p>
<h2 id="gitee上设置："><a href="#gitee上设置：" class="headerlink" title="gitee上设置："></a>gitee上设置：</h2><p>1、需要上传身份证照片做实名认证<br>2、安装win版git后，Powershell下，使用Cygwin的~&#x2F;.ssh&#x2F;目录下可以key，满足git的授权使用</p>
<h2 id="问题：执行hexo-deploy后，访问Pages仍然404"><a href="#问题：执行hexo-deploy后，访问Pages仍然404" class="headerlink" title="问题：执行hexo deploy后，访问Pages仍然404"></a>问题：执行hexo deploy后，访问Pages仍然404</h2><p>Gitee部署网页后，需要到页面进行更新。<br><a target="_blank" rel="noopener" href="https://gitee.com/blandodo/blando/pages">https://gitee.com/blandodo/blando/pages</a><br>点击“更新“按钮后，才能访问到自己的页面，否则404.</p>
<h2 id="问题：Pager页面刷新后无法加载css和js文件"><a href="#问题：Pager页面刷新后无法加载css和js文件" class="headerlink" title="问题：Pager页面刷新后无法加载css和js文件"></a>问题：Pager页面刷新后无法加载css和js文件</h2><p><a target="_blank" rel="noopener" href="https://blog.csdn.net/qq_21040559/article/details/109681173">https://blog.csdn.net/qq_21040559/article/details/109681173</a><br>需要填写_config.yml文件中的url路经</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">url: https://blandodo.gitee.io/blando/</span><br></pre></td></tr></table></figure>

<h2 id="更换主题"><a href="#更换主题" class="headerlink" title="更换主题"></a>更换主题</h2><p>github搜索：hexo-theme<br>官方：<a target="_blank" rel="noopener" href="https://hexo.io/themes/">https://hexo.io/themes/</a></p>
<h2 id="增加留言板"><a href="#增加留言板" class="headerlink" title="增加留言板"></a>增加留言板</h2>
    </div>

    
    
    

      <footer class="post-footer">

        


        
      </footer>
    
  </article>
  
  
  



          </div>
          

<script>
  window.addEventListener('tabs:register', () => {
    let { activeClass } = CONFIG.comments;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      let commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>

        </div>
          
  
  <div class="toggle sidebar-toggle">
    <span class="toggle-line toggle-line-first"></span>
    <span class="toggle-line toggle-line-middle"></span>
    <span class="toggle-line toggle-line-last"></span>
  </div>

  <aside class="sidebar">
    <div class="sidebar-inner">

      <ul class="sidebar-nav motion-element">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <!--noindex-->
      <div class="post-toc-wrap sidebar-panel">
          <div class="post-toc motion-element"><ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#gitee%E4%B8%8A%E8%AE%BE%E7%BD%AE%EF%BC%9A"><span class="nav-number">1.</span> <span class="nav-text">gitee上设置：</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E9%97%AE%E9%A2%98%EF%BC%9A%E6%89%A7%E8%A1%8Chexo-deploy%E5%90%8E%EF%BC%8C%E8%AE%BF%E9%97%AEPages%E4%BB%8D%E7%84%B6404"><span class="nav-number">2.</span> <span class="nav-text">问题：执行hexo deploy后，访问Pages仍然404</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E9%97%AE%E9%A2%98%EF%BC%9APager%E9%A1%B5%E9%9D%A2%E5%88%B7%E6%96%B0%E5%90%8E%E6%97%A0%E6%B3%95%E5%8A%A0%E8%BD%BDcss%E5%92%8Cjs%E6%96%87%E4%BB%B6"><span class="nav-number">3.</span> <span class="nav-text">问题：Pager页面刷新后无法加载css和js文件</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E6%9B%B4%E6%8D%A2%E4%B8%BB%E9%A2%98"><span class="nav-number">4.</span> <span class="nav-text">更换主题</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%A2%9E%E5%8A%A0%E7%95%99%E8%A8%80%E6%9D%BF"><span class="nav-number">5.</span> <span class="nav-text">增加留言板</span></a></li></ol></div>
      </div>
      <!--/noindex-->

      <div class="site-overview-wrap sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
  <p class="site-author-name" itemprop="name">John Doe</p>
  <div class="site-description" itemprop="description"></div>
</div>
<div class="site-state-wrap motion-element">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/blando/archives/">
        
          <span class="site-state-item-count">1</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
  </nav>
</div>



      </div>

    </div>
  </aside>
  <div id="sidebar-dimmer"></div>


      </div>
    </main>

    <footer class="footer">
      <div class="footer-inner">
        

        

<div class="copyright">
  
  &copy; 
  <span itemprop="copyrightYear">2022</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">John Doe</span>
</div>
  <div class="powered-by">由 <a href="https://hexo.io/" class="theme-link" rel="noopener" target="_blank">Hexo</a> & <a href="https://muse.theme-next.org/" class="theme-link" rel="noopener" target="_blank">NexT.Muse</a> 强力驱动
  </div>

        








      </div>
    </footer>
  </div>

  
  <script src="/blando/lib/anime.min.js"></script>
  <script src="/blando/lib/velocity/velocity.min.js"></script>
  <script src="/blando/lib/velocity/velocity.ui.min.js"></script>

<script src="/blando/js/utils.js"></script>

<script src="/blando/js/motion.js"></script>


<script src="/blando/js/schemes/muse.js"></script>


<script src="/blando/js/next-boot.js"></script>




  















  

  

</body>
</html>
